package de.softcon.sc4retail.ui;

import de.softcon.sc4retail.R;
import de.softcon.sc4retail.R.id;
import de.softcon.sc4retail.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class CheckoutDialog extends OptionMenuPlugin {

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.checkout);	   
	    
	    //Handle button click events for completing checkout
	    Button completeCheckout = (Button) findViewById(R.id.completeCheckoutButton);
	    completeCheckout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) 
			{
				//Show same as shopping cart & thank user for this order and that he'll be notified via email
		    	startActivity(new Intent(CheckoutDialog.this, OrderSummaryDialog.class));				
			}			    
	    });
	}
}
